package com.sxhuayuan.parking.entity;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * 车场发票配置
 * @author helong
 * @create 2019-08-28 15:22
 */
@Entity
@Getter
@Setter
@Table(name = "hypk_invoice_setting")
public class InvoiceSetting extends BaseEntity{
	/** 用户名，对应第三方开票系统的身份标识 */
	private String userName;
	/** 秘钥，第三方开票系统秘钥 */
	private String secretKey;
	/** 税率 */
	private BigDecimal taxRate;
	/**  税收分类编码 */
	private String taxTypeCode;
	/** 开票方名称 */
	private String name;
	/** 开票人 */
	private String clerk;
	/** 收款人 */
	private String payee;
	/** 复核人 */
	private String checker;
	/** 纳税人识别号 */
	private String taxpayerNum;
	/** 地址 */
	private String address;
	/** 电话 */
	private String phone;
	/** 开户行 */
	private String openingBank;
	/** 账号 */
	private String bankAccount;

	/** 诺诺-identity  用于查询开票状态接口中的用户身份识别 */
	private String nuonuoIdentity;

	/** 插件id */
	private String pluginId;

	@Column(length = 30)
	public String getUserName() {
		return userName;
	}

	@Column(length = 50)
	public String getSecretKey() {
		return secretKey;
	}

	@Column(nullable = false,precision = 4,scale = 2)
	public BigDecimal getTaxRate() {
		return taxRate;
	}

	@Column(nullable = false,length = 20)
	public String getName() {
		return name;
	}

	@Column(nullable = false,length = 20)
	public String getClerk() {
		return clerk;
	}

	@Column(length = 20)
	public String getPayee() {
		return payee;
	}

	@Column(length = 20)
	public String getChecker() {
		return checker;
	}
	@Column(nullable = false,length = 30)
	public String getTaxpayerNum() {
		return taxpayerNum;
	}

	@Column(length = 50)
	public String getAddress() {
		return address;
	}

	@Column(length = 20)
	public String getPhone() {
		return phone;
	}

	@Column(length = 20)
	public String getOpeningBank() {
		return openingBank;
	}

	@Column(length = 30)
	public String getBankAccount() {
		return bankAccount;
	}

	@Column(nullable = false)
	public String getTaxTypeCode() {
		return taxTypeCode;
	}

	@Column(nullable = false,length = 30)
	public String getPluginId() {
		return pluginId;
	}

}
